package com.ag.lzm.test;

import java.util.List;

import javax.annotation.Resource;

import org.junit.Test;

import com.ag.admin.dao.TbUserDAO;
import com.ag.admin.utils.MD5withSalt;
import com.ag.bean.TbUser;


public class RRR extends BaseTest {
	@Resource(name = "LZMTbUserDAO")
	private TbUserDAO userDAO;
	@Test
	public void getDAByEId() {
		List<TbUser> users=userDAO.findAll();
		for (TbUser tbUser : users) {
			MD5withSalt md5 = new MD5withSalt(tbUser.getUId(), "MD5");
			tbUser.setUPassword(md5.encode("123"));
			userDAO.attachDirty(tbUser);
			System.out.println("gggggggggggggg");
		}
	}
}
